﻿@*doing excerpt generation on the way out for now so we don't stick ourselves with needing to regen excerpts for existing data
  also, doing this here, inline, until we have a pluggable processing model (both in and out)
  also, ...this is ugly *@
@using System.Text.RegularExpressions;
@{ 
	Orchard.ContentManagement.ContentItem contentItem = Model.ContentPart.ContentItem;
	string bodyHtml = Model.Html.ToString();
	var body = ""; // new HtmlString(Html.Excerpt(bodyHtml, 200).ToString().Replace(Environment.NewLine, "</p>" + Environment.NewLine + "<p>"));

	Match m = Regex.Match(bodyHtml, @"<p>\s*(.+?)\s*</p>");

	if (m.Success)
	{
		body = m.Groups[1].Value;
	}
}
<p>@body</p>